package com.itheima.ssm.service;

import com.itheima.ssm.vo.Role;
import com.itheima.ssm.vo.Users;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

public interface IUserService extends UserDetailsService {

    List<Users> findAll() throws Exception;

    void save(Users userInfo) throws Exception;

    Users findById(String id) throws Exception;

    List<Role> findOtherRoles(String userId) throws Exception;

    void addRoleToUser(String userId, String[] roleIds);
}
